package common.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import common.model.po.base.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 米泽鹏
 * @since 2023-09-12 下午 10:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_topic_comment")
@ApiModel(value = "SysTopicComment对象", description = "")
public class SysTopicComment extends BasePo<SysTopicComment> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "话题id")
	private Long topicId;

	@ApiModelProperty(value = "上级评论id")
	private Long parentId;

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "用户昵称")
	private String nickname;

	@ApiModelProperty(value = "被评论的用户id")
	private Long replyToUserId;

	@ApiModelProperty(value = "被评论的用户昵称")
	private String replyToNickname;

	@ApiModelProperty(value = "评论内容")
	private String content;

	@ApiModelProperty(value = "排序")
	private Integer sort;

	@Override
	public Serializable pkVal() {
		return super.getId();
	}

}
